import request from '@/utils/request'

// 查询试验室培训列表
export function listBsLearn(query) {
  return request({
    url: '/dept/bsLearn/list',
    method: 'get',
    params: query
  })
}

// 查询试验室培训详细
export function getBsLearn(learnId) {
  return request({
    url: '/dept/bsLearn/' + learnId,
    method: 'get'
  })
}

// 新增试验室培训
export function addBsLearn(data) {
  return request({
    url: '/dept/bsLearn',
    method: 'post',
    data: data
  })
}

// 修改试验室培训
export function updateBsLearn(data) {
  return request({
    url: '/dept/bsLearn',
    method: 'put',
    data: data
  })
}

// 删除试验室培训
export function delBsLearn(learnId) {
  return request({
    url: '/dept/bsLearn/' + learnId,
    method: 'delete'
  })
}
